package com.telrob.bytevm.vm;

import java.util.concurrent.LinkedBlockingQueue;

public class TestQueue {
	public static void main(String[] args) {
		char c=82;
		System.err.println(c);
		LinkedBlockingQueue<String> queue=new LinkedBlockingQueue<>();
		queue.add("张三");
		queue.add("李四");
		queue.add("王五");
		while(true) {
			String name=queue.poll();
			System.err.println(name);
			queue.add(name);
			try {
				Thread.sleep(1000);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}
}
